package com.gxsf.back.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.CreatedDate;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.sql.Timestamp;

/**
 * @author BeijiRonin
 * @date 2020/11/12
 */
@Data
@Entity
@ApiModel("用户吐槽")
public class MarkSpeak {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public long id;
    @ApiModelProperty("内容")
    public String content;
    @ApiModelProperty("用户ID")
    public long userId;
    @ApiModelProperty("状态，0未读1已读")
    public int status = 0;
    @CreatedDate
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Timestamp createTime;
}
